package com.ddd.mill.domain.aggregate.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ddd.mill.infrastructure.persistent.domain.Entity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品详情
 *
 * @author qniao
 * @date 2020/11/28
 */
@Api("商品详情")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qn_product_detail")
public class ProductDetail extends Entity<ProductDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @ApiModelProperty("")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 产品id
     */
    @ApiModelProperty("产品id")
    private Long productId;

    /**
     * 详情
     */
    @ApiModelProperty("详情")
    private String detail;

    /**
     * 送货说明
     */
    @ApiModelProperty("送货说明")
    private String deliverTips;

    /**
     * 创建者ID
     */
    @ApiModelProperty("创建者ID")
    @TableField(fill = FieldFill.INSERT)
    private Long creatorId;

    /**
     * 编辑者ID
     */
    @ApiModelProperty("编辑者ID")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long editorId;


}
